package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.EPaymentMapper;
import com.ruoyi.finance.domain.EPayment;
import com.ruoyi.finance.service.IEPaymentService;

/**
 * 支付记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
@Service
public class EPaymentServiceImpl implements IEPaymentService 
{
    @Autowired
    private EPaymentMapper ePaymentMapper;

    /**
     * 查询支付记录
     * 
     * @param id 支付记录主键
     * @return 支付记录
     */
    @Override
    public EPayment selectEPaymentById(Integer id)
    {
        return ePaymentMapper.selectEPaymentById(id);
    }

    /**
     * 查询支付记录列表
     * 
     * @param ePayment 支付记录
     * @return 支付记录
     */
    @Override
    public List<EPayment> selectEPaymentList(EPayment ePayment)
    {
        return ePaymentMapper.selectEPaymentList(ePayment);
    }

    /**
     * 新增支付记录
     * 
     * @param ePayment 支付记录
     * @return 结果
     */
    @Override
    public int insertEPayment(EPayment ePayment)
    {
        return ePaymentMapper.insertEPayment(ePayment);
    }

    /**
     * 修改支付记录
     * 
     * @param ePayment 支付记录
     * @return 结果
     */
    @Override
    public int updateEPayment(EPayment ePayment)
    {
        return ePaymentMapper.updateEPayment(ePayment);
    }

    /**
     * 批量删除支付记录
     * 
     * @param ids 需要删除的支付记录主键
     * @return 结果
     */
    @Override
    public int deleteEPaymentByIds(Integer[] ids)
    {
        return ePaymentMapper.deleteEPaymentByIds(ids);
    }

    /**
     * 删除支付记录信息
     * 
     * @param id 支付记录主键
     * @return 结果
     */
    @Override
    public int deleteEPaymentById(Integer id)
    {
        return ePaymentMapper.deleteEPaymentById(id);
    }
}
